import { ArrayMaxSize, ArrayMinSize, IsArray, IsBoolean, IsInt, IsOptional, Max, Min } from "class-validator";

export default class SetParamsDto{
    @Min(1)
    @IsInt()
    id: number;

    @Max(1)
    @Min(1)
    @IsInt()
    range: number;

    @ArrayMaxSize(100)
    @ArrayMinSize(1)
    @IsArray()
    @IsOptional()
    deviceIds: number[];
}